package com.chainyoung.common.http.websocket;

import java.nio.ByteBuffer;

import okhttp3.Response;
import okhttp3.WebSocketListener;
import okio.ByteString;

public abstract class WsStatusListener extends WebSocketListener{
    public void onOpen(Response response) {

    }



    public void onMessage(String text) {

    }



    public void onMessage(ByteString bytes) {

    }


    public void onMessage(ByteBuffer byteBuffer){

    }



    public void onReconnect() {



    }



    public void onClosing(int code, String reason) {

    }





    public void onClosed(int code, String reason) {

    }



    public void onFailure(Throwable t, Response response) {

    }

}
